package com.zxy.ziems.collector.modbus;

import com.intelligt.modbus.jlibmodbus.utils.ModbusFunctionCode;
import com.zxy.ziems.collector.parse.ByteResponse;

/**
 * @author 10348359
 * @create 2024-04-17 9:52
 */
public class ModbusByteResponse extends ByteResponse {

    /**
     * 功能码
     */
    private ModbusFunctionCode function;

    public ModbusFunctionCode getFunction() {
        return function;
    }

    public ModbusByteResponse(ModbusFunctionCode function) {
        super();
        this.function = function;
    }

    public ModbusByteResponse(byte[] bytes, ModbusFunctionCode function) {
        super(bytes);
        this.function = function;
    }
}
